import request from '@/common/request';
import config from '@/common/config';

// 发送请求获得权限
export default function sendgetLoginRight({ name, password }) {
  const result = request({
    url: `${config.server}/admin/login`,
    method: 'post',
    data: {
      username: name,
      password,
    },
  });
  return result;
}
